/**
 * @apiDefine cashier 收银员
 * @apiHeader {String} token 用户登录获取的token
 */


/**
 * @api {POST} /cashier_info 收银员信息
 * @apiSampleRequest /cashier_info
 * @apiGroup cashier
 * @apiUse cashier
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0,
 *     "data": {
 *         "id": 3, // 收银员ID
 *         "shop_id": 1, // 店铺ID
 *         "job_num": 1003, // 工号
 *         "username": "bill", // 收银员账号
 *         "status": 1, // 收银员状态
 *         "created": 1632730299,
 *         "updated": 1632889268,
 *         "cfg": { // 个人配置信息
 *             "print": [
 *                 {
 *                     "a": 1
 *                 }
 *             ]
 *         },
 *         "shop_name": "大鱼的店" // 店铺名称
 *         "shop_phone": "13444444444",
 *         "shop_address": "太原街18号"
 *     }
 * }
 */


/**
 * @api {POST} /handover 交接班
 * @apiSampleRequest /handover
 * @apiGroup cashier
 * @apiUse cashier
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0,
 *     "data": {
 *         "cashier": {
 *             "id": 7,
 *             "shop_id": 70,
 *             "job_num": 1004,
 *             "username": "hank",
 *             "status": 1,
 *             "last_login_at": 1635917472,
 *             "created": 1634782088
 *         },
 *         "cash": {
 *             "label": "应有现金",
 *             "num": 1,
 *             "amount": "9.90",
 *             "detail": [
 *                 {
 *                     "label": "店内单据",
 *                     "num": 1,
 *                     "amount": "9.90"
 *                 },
 *                 {
 *                     "label": "店内销售单据",
 *                     "num": 1,
 *                     "amount": "9.90"
 *                 },
 *                 {
 *                     "label": "店内单反结账单据",
 *                     "num": 4,
 *                     "amount": "575.00"
 *                 }
 *             ]
 *         },
 *         "sale": {
 *             "label": "总销售",
 *             "num": 1,
 *             "amount": "9.90",
 *             "detail": [
 *                 {
 *                     "label": "店内单据",
 *                     "num": 1,
 *                     "amount": "9.90"
 *                 },
 *                 {
 *                     "label": "店内销售单据",
 *                     "num": 1,
 *                     "amount": "9.90"
 *                 },
 *                 {
 *                     "label": "店内单反结账单据",
 *                     "num": 4,
 *                     "amount": "575.00"
 *                 }
 *             ]
 *         },
 *         "storage": {
 *             "label": "仓储卡充值",
 *             "num": 0,
 *             "amount": "0"
 *         },
 *         "payment": {
 *             "label": "支付统计",
 *             "num": 6,
 *             "amount": "9.90",
 *             "detail": [
 *                 {
 *                     "label": "现金",
 *                     "num": 5,
 *                     "amount": "9.90"
 *                 },
 *                 {
 *                     "label": "微信/支付宝",
 *                     "num": 1,
 *                     "amount": "0.00"
 *                 }
 *             ]
 *         },
 *         "from_time": "2021-10-21 17:24:03",
 *         "to_time": "2021-10-22 16:16:15"
 *     }
 * }
 */


/**
 * @api {POST} /logout 退出登录
 * @apiSampleRequest /logout
 * @apiGroup cashier
 * @apiUse cashier
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0
 * }
 */


/**
 * @api {POST} /sign_in 签到
 * @apiSampleRequest /sign_in
 * @apiGroup cashier
 * @apiUse cashier
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0
 * }
 */


/**
 * @api {POST} /is_sign_in 签到状态
 * @apiSampleRequest /is_sign_in
 * @apiGroup cashier
 * @apiUse cashier
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0，
 *     "sign_in_status": 0 // 是否签到，0否，1是
 * }
 */



/**
 * @api {POST} /cashier_update_config 更新个人配置
 * @apiSampleRequest /cashier_update_config
 * @apiDescription <p>键值可以是任意类型。</p>
 * @apiGroup cashier
 * @apiUse cashier
 * @apiParam {String} key 配置键名
 * @apiParam {Object} val 配置键值
 * @apiSuccess {Object} /data 数据
 * @apiSuccessExample {json} 成功响应：
 * HTTP/1.1 200 OK
 * {
 *     "errcode": 0
 * }
 */